package com.cavy.platform.server.domain.job;

import com.cavy.platform.server.domain.AgentOnline;
import com.cavy.platform.server.domain.SchedulingStrategy;
import com.cavy.platform.server.domain.UnAvailableAgentException;

import java.util.Collection;

/**
 * @author 唐旭
 * @Date 2018/7/25
 */
public interface JobDispatcher {
    boolean support(SchedulingStrategy schedulingStrategy);

    AgentOnline select(Collection<AgentOnline> list) throws UnAvailableAgentException;
}
